package com.demo.mapper;

import com.demo.entity.User;
import com.demo.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * Created by hardy
 * 2018/6/7 上午11:47
 */
@Mapper
@Repository
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where age>#{age}")
    List<User> findAgeLessThen(@Param("age") int age);
}